﻿var BizTree = function (treeselector, treesetts) {
    this.selector = treeselector;
    this.source = $(this.selector);
    var $tree = this.source;
    treesetts = treesetts || {};
    if (treesetts.url) {
        treesetts.url = AppendTransfers(treesetts.url);
    }
    var defaultSetts = {};
    $.extend(true, defaultSetts, treesetts);
    $tree.tree(defaultSetts);
};
BizTree.prototype =
{
    reload: function () {
        this.source = $(this.selector);
        var $tree = this.source;
        $tree.tree("reload");
    }
};